<?php
include_once "inc/docroot.php";

    include_once PATH."common/base.php";
    $pageTitle = "Register";
    include_once PATH."common/header.php";

    if(!empty($_POST['username'])):
        include_once PATH."inc/class.users.inc.php";
        $users = new ColoredListsUsers($db);
        echo $users->createAccount();
    else:
?>
        <form method="post" action="signup.php" id="registerform">
            <div>
                <input type="text" name="username" id="username" />
                <label for="username">Email:</label>
                <br/>
                <br/>
                <input type="submit" name="register" id="register" value="Sign up" />
            </div>
        </form>

<?php
    endif;
    include_once PATH.'common/close.php';
?>